﻿using System;
using System.Diagnostics;
using System.Globalization;

namespace LFSRecord2.Model.Sound
{
    public static class WaveHelper
    {
        public static void Try(int result)
        {
            if (result != NativeMethods.MMSYSERR_NOERROR)
            {
                Debug.WriteLine("Tried Wave external error : " + result.ToString(CultureInfo.InvariantCulture));
                throw new Exception(result.ToString(CultureInfo.InvariantCulture));
            }
        }
    }
}
